import myAxios from '../MyAxios'
import urls from '../BaseUrl'

const directorApi={
  // 查询导演列表
  list(params){
    return myAxios.get(urls+'/movie-directors',params)
  },
  
   seach(params){
    return myAxios.post(urls+"/movie-directors/name",params)
   },
  //  添加
   add(params){
    return myAxios.post(urls+'/movie-director/add',params)
     
  },
  // 删除
  delete(params){
    return myAxios.post(urls+'/movie-director/del',params)
  }
}
export default directorApi